﻿namespace System.Data.Entity.Utilities
{
    using System;
    using System.Linq;
    using System.Reflection;

    internal static class Utilities
    {
        #region Field

        internal readonly static AssemblyName[] referencedAssemblies = Assembly.GetExecutingAssembly().GetReferencedAssemblies();

        internal readonly static string assemblyEF = referencedAssemblies.Single(a => a.Name == "EntityFramework").FullName;

        #endregion

        internal static Type GetReferencedType(string assemblyName, string typeName)
        {
            return Type.GetType(string.Format("{0}, {1}", typeName, assemblyName));
        }

        internal const string DefaultReturnValueName = "ReturnParam";
        internal const string DefaultParameterName = "freetext";
        internal const string DefaultFunctionPrefix = "Search";
    }
}
